package com.qf.day06.dt;

import javax.swing.text.Style;

public class dw {
    private String name;
    private String type;
    private int age;

    public dw() {
    }

    public dw(String name, String type, int age) {
        this.name = name;
        this.type = type;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    //动物类的吃方法
    public void eat(){
        System.out.println(name+"在吃饭");
    }
}
